package com.leejxx.article.controller;

import com.leejxx.article.service.ApArticleService;
import com.leejxx.model.article.dtos.ArticleInfoDto;
import com.leejxx.model.common.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author LeeJx
 * @ClassName ArticleInfoController
 * @Description TODO
 * @date 2021/3/3 13:36
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/v1/article")
public class ArticleInfoController {
    @Autowired
    private ApArticleService apArticleService;

    @PostMapping("/load_article_info")
    public ResponseResult loadArticleInfo(@RequestBody ArticleInfoDto dto) {
        return apArticleService.loadArticleInfo(dto);
    }
}
